﻿using System;
using System.ComponentModel.DataAnnotations;
using BoostSite.Demo.Definitions.Templates.PropertyBlockTypes.Navigation;
using EPiBoost.Core.DataAnnotations;
using EPiBoost.Core.Interfaces.ContentInterfaces;
using EPiServer;
using EPiServer.Core;
using EPiServer.DataAnnotations;
using EPiServer.Framework.DataAnnotations;
using EPiServer.SpecializedProperties;
using EPiServer.Web;

namespace BoostSite.Demo.Definitions.Templates.SharedBlockTypes.Promos
{	
	[ContentType(GUID = "89CB3492-8E7A-4DFF-BEBB-BCD3DFD8F962",
			    DisplayName = "Image Promo",
				Description = "",
				GroupName = BlockGroupNames.Promos,
				Order = 1)]
	[AutoImageUrl(typeof(ImagePromoBlock))]
	public class ImagePromoBlock : BlockData, IMainTitle
	{
		#region Configuration

		[CultureSpecific]
		[Display(GroupName = TabNames.Content,
			Name = "MainTitle",
			Description = "The heading of the block.",
			Order = 1)]
		public virtual string MainTitle { get; set; }

		 
		[Display(
			Name = "Link",
			Description = "",
			GroupName = TabNames.Content,
			Order = 30)]
		public virtual Url Link { get; set; }

		 
		[Display(
			Name = "Image",
			Description = "",
			GroupName = TabNames.Content,
			Order = 40)]
		[UIHint(UIHint.Image)]
		public virtual Url Image { get; set; }



		#endregion

	}
}
